home *** CD-ROM | disk | FTP | other *** search
/ User's Choice Windows CD / User's Choice Windows CD (CMS Software)(1993).iso / utility1 / gs261src.zip / VMS-GCC.MAK < prev    next >
Text File  |  1993-05-13  |  7KB  |  285 lines

  1. $ !    Copyright (C) 1989, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  2. $ !
  3. $ ! This file is part of Ghostscript.
  4. $ !
  5. $ ! Ghostscript is distributed in the hope that it will be useful, but
  6. $ ! WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  7. $ ! to anyone for the consequences of using it or for whether it serves any
  8. $ ! particular purpose or works at all, unless he says so in writing.  Refer
  9. $ ! to the Ghostscript General Public License for full details.
  10. $ !
  11. $ ! Everyone is granted permission to copy, modify and redistribute
  12. $ ! Ghostscript, but only under the conditions described in the Ghostscript
  13. $ ! General Public License.  A copy of this license is supposed to have been
  14. $ ! given to you along with Ghostscript so you can know your rights and
  15. $ ! responsibilities.  It should be in a file named COPYING.  Among other
  16. $ ! things, the copyright notice and this notice must be preserved on all
  17. $ ! copies.
  18. $ !
  19. $ !
  20. $ ! "makefile" for Ghostscript, VMS / GNU C / DECwindows (X11) configuration.
  21. $ !
  22. $ !
  23. $ ! Execute this command file while in the Ghostscript directory!
  24. $ !
  25. $ !
  26. $ ! To build a debugging configuration, issue the command:
  27. $ !
  28. $ !          $ @VMS-CC.MAK DEBUG
  29. $ !
  30. $ ! Do not  abbreviate "DEBUG".  To specify an alternate directory for
  31. $ ! GS_LIB_DEFAULT, issue the command:
  32. $ !
  33. $ !          $ @VMS-CC.MAK directory
  34. $ !
  35. $ ! with "directory" a fully qualified directory name.  "directory" cannot
  36. $ ! be DEBUG (otherwise it will be confused with the DEBUG switch).  Both
  37. $ ! the DEBUG switch and a directory name may be specified on the same
  38. $ ! command line and in either order.
  39. $ !
  40. $ CDEF = ""
  41. $ LDEF = ""
  42. $ !
  43. $ GS_INIT = "GS_INIT.PS"
  44. $ GS_LIB_DEFAULT = F$ENVIRONMENT("DEFAULT")
  45. $ IF P1 .NES. "" .AND. P1 .NES. "DEBUG" THEN GS_LIB_DEFAULT = P1
  46. $ IF P2 .NES. "" .AND. P2 .NES. "DEBUG" THEN GS_LIB_DEFAULT = P2
  47. $ !
  48. $ IF P1 .NES. "DEBUG" .AND. P2 .NES. "DEBUG" THEN GOTO NODEBUG
  49. $ CDEF = "/DEFINE=(""DEBUG"")/NOOPTIMIZE/DEBUG"
  50. $ LDEF = "/DEBUG"
  51. $ !
  52. $ NODEBUG:
  53. $ !
  54. $ ! Is GNU C about and defined?
  55. $ !
  56. $ IF F$TRNLNM("GNU_CC") .NES. "" THEN GOTO GNU_CC_OKAY
  57. $ WRITE SYS$OUTPUT "GNU_CC logical is undefined.  You must execute the command"
  58. $ WRITE SYS$OUTPUT "file GCC_INSTALL.COM in the GNU CC directory before using"
  59. $ WRITE SYS$OUTPUT "this command file."
  60. $ EXIT
  61. $ !
  62. $ !
  63. $ GNU_CC_OKAY:
  64. $ SET COMMAND GNU_CC:[000000]GCC.CLD
  65. $ !
  66. $ !
  67. $ ! Compile genarch.c and then run it to create the arch.h header file
  68. $ !
  69. $ GCC/NOLIST/OBJECT=GENARCH.OBJ GENARCH.C
  70. $ LINK/NOMAP/EXE=GENARCH.EXE GENARCH,GNU_CC:[000000]GCCLIB/LIB,SYS$INPUT/OPT
  71. SYS$SHARE:VAXCRTL/SHARE
  72. $ GENARCH = "$" + F$ENVIRONMENT("DEFAULT") + "GENARCH.EXE"
  73. $ GENARCH ARCH.H
  74. $ DELETE GENARCH.EXE.*,GENARCH.OBJ.*
  75. $ PURGE ARCH.H
  76. $ !
  77. $ !
  78. $ ! Create a minimal gconfig.h.  To add devices, look in DEVS.MAK to find
  79. $ ! the files that comprise the driver, and add them to the compilation
  80. $ ! and linking lists below.  Then add a line below the CREATE of the form
  81. $ !    device__(gs_the-device-name_device)
  82. $ ! e.g.
  83. $ !    device__(gs_bj10e_device)
  84. $ ! To incorporate compiled fonts, add the line
  85. $ !    oper__(ccfonts_op_defs)
  86. $ ! Also add the name ICCFONT and the names of the compiled fonts
  87. $ ! to the compilation and linking lists.
  88. $ !
  89. $ !
  90. $ CREATE GCONFIG.H
  91. #include "gsconfig.h"
  92. device__(gs_x11_device)
  93. $ !
  94. $ !
  95. $ ! Create gconfigf.h similarly.  This is only used for compiled fonts.
  96. $ ! For each compiled font XYZ, add a line of the form
  97. $ !    font_("0.font_XYZ",gsf_XYZ,zf_XYZ)
  98. $ ! If you defined a "short name" for the font (see fonts.doc),
  99. $ ! that is what you should use for XYZ.
  100. $ !
  101. $ !
  102. $ CREATE GCONFIGF.H
  103. $ !
  104. $ ! Create an empty object library
  105. $ !
  106. $ LIBRARY/CREATE GS.OLB
  107. $ !
  108. $ !
  109. $ ! Create a list of modules to compile and store in the object library
  110. $ !
  111. $ CREATE MODULES.LIS
  112. GDEVMEM1
  113. GDEVMEM2
  114. GDEVMEM3
  115. GP_NOFB
  116. GP_VMS
  117. GSCHAR
  118. GSCHAR0
  119. GSCIE
  120. GSCOLOR
  121. GSCOLOR2
  122. GSCOORD
  123. GSDEVICE
  124. GSDPS1
  125. GSFILE
  126. GSFONT
  127. GSHT
  128. GSIMAGE
  129. GSIMAGE1
  130. GSIMAGE2
  131. GSIMPATH
  132. GSLINE
  133. GSMATRIX
  134. GSMISC
  135. GSPAINT
  136. GSPATH
  137. GSPATH2
  138. GSSTATE
  139. GSTDEV
  140. GSTYPE1
  141. GSUTIL
  142. GXCCACHE
  143. GXCCMAN
  144. GXCLIST
  145. GXCLREAD
  146. GXCMAP
  147. GXCPATH
  148. GXDITHER
  149. GXDRAW
  150. GXFILL
  151. GXHINT1
  152. GXHINT2
  153. GXHT
  154. GXPATH
  155. GXPATH2
  156. GXPCOPY
  157. GXSTROKE
  158. IALLOC
  159. IBNUM
  160. IBSCAN
  161. ICCFONT
  162. IDEBUG
  163. IDICT
  164. IDPARAM
  165. IINIT
  166. INAME
  167. INTERP
  168. ISAVE
  169. ISCAN
  170. IUTIL
  171. SBITS
  172. SCFD
  173. SCFDTAB
  174. SCFE
  175. SCFTAB
  176. SDCTD
  177. SDCTE
  178. SFILTER
  179. SFILTER2
  180. SLZWD
  181. SLZWE
  182. STREAM
  183. ZARITH
  184. ZARRAY
  185. ZBSEQ
  186. ZCHAR
  187. ZCHAR2
  188. ZCIE
  189. ZCOLOR
  190. ZCOLOR2
  191. ZCONTROL
  192. ZCSPACE2
  193. ZDEVICE
  194. ZDICT
  195. ZDPS1
  196. ZFILE
  197. ZFILEDEV
  198. ZFILEIO
  199. ZFILTER
  200. ZFILTER2
  201. ZFONT
  202. ZFONT0
  203. ZFONT1
  204. ZFONT2
  205. ZGENERIC
  206. ZGSTATE
  207. ZHT
  208. ZHT2
  209. ZIMAGE2
  210. ZMATH
  211. ZMATRIX
  212. ZMISC
  213. ZMISC2
  214. ZPACKED
  215. ZPAINT
  216. ZPATH
  217. ZPATH2
  218. ZPROPS
  219. ZRELBIT
  220. ZSTACK
  221. ZSTRING
  222. ZTYPE
  223. ZUPATH
  224. ZVMEM
  225. ZVMEM2
  226. $ !
  227. $ !
  228. $ ! NOW COMPILE AWAY!
  229. $ !
  230. $ OPEN/READ MODULE_LIST MODULES.LIS
  231. $ !
  232. $ COMPILE_LOOP:
  233. $ READ/END=END_COMPILE MODULE_LIST MODULE
  234. $ GCC'CDEF/NOLIST/OBJECT='MODULE'.OBJ 'MODULE'.C
  235. $ LIBRARY/INSERT GS.OLB 'MODULE'.OBJ
  236. $ DELETE 'MODULE'.OBJ.*
  237. $ GOTO COMPILE_LOOP
  238. $ !
  239. $ END_COMPILE:
  240. $ CLOSE MODULE_LIST
  241. $ DELETE MODULES.LIS.*
  242. $ !
  243. $ !
  244. $ ! Is the DECwindows environment about?  Must be installed in order to
  245. $ ! build the executable program gs.exe.
  246. $ !
  247. $ IF F$SEARCH("SYS$SHARE:DECW$XLIBSHR.EXE") .NES. "" THEN GOTO CHECK2
  248. $ WRITE SYS$OUTPUT "DECwindows user environment not installed;"
  249. $ WRITE SYS$OUTPUT "unable to build executable programs."
  250. $ GOTO DONE
  251. $ !
  252. $ CHECK2:
  253. $ IF F$TRNLNM("DECW$INCLUDE") .NES. "" THEN GOTO BUILD_EXES
  254. $ WRITE SYS$OUTPUT "You must invoke @DECW$STARTUP before using this"
  255. $ WRITE SYS$OUTPUT "command procedure to build the executable programs."
  256. $ GOTO DONE
  257. $ !
  258. $ !
  259. $ BUILD_EXES:
  260. $ !
  261. $ LIBDEF = """GS_LIB_DEFAULT=""""" + ''GS_LIB_DEFAULT' + """"""""
  262. $ INIDEF = """GS_INIT=""""" + ''GS_INIT' + """"""""
  263. $ GCC'CDEF/NOLIST/DEFINE=('LIBDEF','INIDEF')/OBJECT=GCONFIG.OBJ GCONFIG.C
  264. $ GCC'CDEF/NOLIST/INCLUDE_DIRECTORY='F$TRNLNM("SYS$COMMON") -
  265.     /OBJECT=GDEVXINI.OBJ GDEVXINI.C
  266. $ GCC'CDEF/NOLIST/INCLUDE_DIRECTORY='F$TRNLNM("SYS$COMMON")/OBJECT=GDEVX.OBJ -
  267.     GDEVX.C
  268. $ GCC'CDEF/NOLIST/OBJECT=GSMAIN.OBJ GSMAIN.C
  269. $ !
  270. $ GCC'CDEF/NOLIST/OBJECT=GS.OBJ GS.C
  271. $ LINK'LDEF/NOMAP/EXE=GS.EXE GS,GSMAIN,GDEVX,GDEVXINI,GCONFIG,-
  272.   GS/LIB/INCLUDE=(GDEVMEM1,GDEVMEM2,GDEVMEM3,GXCLIST,GXCLREAD,-
  273.   ZARITH,ZARRAY,ZBSEQ,ZCHAR,ZCOLOR,ZCOLOR2,ZCONTROL,ZDEVICE,ZDPS1,-
  274.   ZDICT,ZFILE,ZFILEDEV,ZFILEIO,ZFILTER,ZFILTER2,ZFONT,ZFONT0,ZFONT1,ZFONT2,-
  275.   ZGENERIC,ZGSTATE,ZHT,ZIMAGE2,ZMATH,ZMATRIX,ZMISC,-
  276.   ZPACKED,ZPAINT,ZPATH,ZPATH2,-
  277.   ZPROPS,ZRELBIT,ZSTACK,ZSTRING,ZTYPE,ZUPATH,ZVMEM),SYS$INPUT/OPT
  278. SYS$SHARE:DECW$DWTLIBSHR/SHARE,SYS$SHARE:DECW$XLIBSHR.EXE/SHARE
  279. $ !
  280. $ DELETE GDEVX.OBJ.*,GDEVXINI.OBJ.*,GSMAIN.OBJ.*,GS.OBJ.*,-
  281.          GCONFIG.OBJ.*
  282. $ !
  283. $ DONE:
  284. $ ! ALL DONE
  285.